#ifdef _SYMBIAN_SDK_
/*
 ============================================================================
 Name		: newsymAppUi.cpp
 Author	  : 
 Copyright   : Your copyright notice
 Description : CnewsymAppUi implementation
 ============================================================================
 */

// INCLUDE FILES
#include <avkon.hrh>
#include <aknmessagequerydialog.h>
#include <aknnotewrappers.h>
#include <stringloader.h>
#include <f32file.h>
#include <s32file.h>
#include <hlplch.h>

//#include <newsym_0xE6D24E41.rsg>

//#include "newsym.hrh"
//#include "newsym.pan"
#include "skyApplication.h"
#include "skyAppUi.h"
#include "skyAppView.h"

// -----------------------------------------------------------------------------
// CsymegAppUi::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CskyAppUi::ConstructL()
{
	// Initialise app UI with standard value.
	BaseConstructL();

	iAppView = CskyAppView::NewL();
	iframeWork = skyFrameWork::NewL(*this);
	iframeWork->SetMopParent(this);
	iAppView->SetFrameWork(iframeWork);
	AddToStackL(iframeWork);
	iframeWork->Initialise();
}
// -----------------------------------------------------------------------------
// CskyAppUi::CskyAppUi()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CskyAppUi::CskyAppUi()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CskyAppUi::~CskyAppUi()
// Destructor.
// -----------------------------------------------------------------------------
//
CskyAppUi::~CskyAppUi()
{
	if (iAppView)
	{
		delete iAppView;
		iAppView = NULL;
	}
	if(iframeWork)
	{
		RemoveFromStack(iframeWork);
		delete iframeWork;
		iframeWork = NULL;
	}
}

// -----------------------------------------------------------------------------
// CskyAppUi::HandleCommandL()
// Takes care of command handling.
// -----------------------------------------------------------------------------
//
void CskyAppUi::HandleCommandL(::TInt aCommand)
	{
	switch (aCommand)
		{
		case EEikCmdExit:
		case EAknSoftkeyExit:
			Exit();
			break;
		}
	}
// -----------------------------------------------------------------------------
//  Called by the framework when the application status pane
//  size is changed.  Passes the new client rectangle to the
//  AppView
// -----------------------------------------------------------------------------
//



// End of File
#endif